package com.itcs.box.util;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * 参数日志
 * 
 * @author LiuPeng
 * @date 2018年2月1日
 * 
 */
public class ParamsLog {

	public static Log logger = LogFactory.getLog(ParamsLog.class);

	/** 
	 * 写参数日志
	 * @param id
	 * @param params 
	 */
	public static void logParams(String id, String params) {
		// if (logger.isDebugEnabled()) {
		if (params == null) {
			return;
		}

		StringBuilder builder = new StringBuilder();
		builder.append("[");
		builder.append(id);
		builder.append("]-");
		builder.append(params);
		logger.info(builder.toString());
		// }
	}

}
